xend, security: Prevent changing of the policy while VMs are migrating
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Nov 2008 10:23:26 +0000 (10:23 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 5 Nov 2008 10:23:26 +0000 (10:23 +0000)
commit9d2a3ef6e80f36ef969fdd87173fa0077a5a748d
tree45fc06dd83c73fb16469c4b741af830a4e91c8b2
parent4b5d0b9cfbba894389562f977f8c5a5930f1c924
xend, security: Prevent changing of the policy while VMs are migrating

The net changes of this patch are that the reader-side lock is put
into the path of the migration code and the writer lock into the path
of the code that handles the changing of the policy. Simultaneous
migrations of multiple hosts still work after this lock has been added.

Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
tools/python/xen/xend/XendDomain.py
tools/python/xen/xend/XendDomainInfo.py